package com.tplhk.app.trip.delegate;

import org.camunda.bpm.engine.delegate.DelegateExecution;
import org.camunda.bpm.engine.delegate.JavaDelegate;
import org.springframework.stereotype.Component;

@Component("bookFlightAdapter")
public class BookFlightAdapter implements JavaDelegate {

  @Override
  public void execute(DelegateExecution execution) throws Exception {

     System.out.println("3. book flight ");

//     Thread.sleep(10*1000);

     if (true) {
//       throw new AppExcetion("Flight booking did not work");
     }
    
  }



}
